package com.course.app.api.data;

import lombok.Data;

import java.util.List;

/**
 * Created by Justin on 2017/5/17.
 */
@Data
public class TaskLearnDTO {
    private int id;
    private List<Item> items;

    @Data
    public static class Item {
        private int index;
        private int itemId;
        private Type type;
        private int groupId;
    }

    public enum Type {
        AUDIO(1, "音频"),
        VIDEO(2, "视频"),
        STORY(3, "故事");

        private int value;
        private String title;

        Type(int value, String title) {
            this.value = value;
            this.title = title;
        }

        public int getValue() {
            return value;
        }

        public String getTitle() {
            return title;
        }
    }
}
